package com.yangxk.kadmin.web.module.sample.form;

import java.math.BigDecimal;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotBlank;
import java.util.Date;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

@Data
public class BookEditForm {

    private Long id;

    @NotBlank(message = "bookName不能为空")
    private String bookName;

    private String isbn;

    @NotBlank(message = "author不能为空")
    private String author;

    private String publisher;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date publishDate;

    @NotNull(message = "category不能为空")
    private Long category;

    @NotNull(message = "deptId不能为空")
    private Long deptId;

    private BigDecimal price;

    @Size(max = 200, message = "备注最大字数为200")
    private String remark;

    @NotBlank(message = "categoryName不能为空")
    private String categoryName;


}
